<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2015/7/3 0003
  Time: 23:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<base href="<%=request.getContextPath()%>/">
<script src="<%=request.getContextPath()%>/modules/common/js/jquery-1.11.3.min.js"></script>
<script src="<%=request.getContextPath()%>/modules/common/js/jquery.md5.js"></script>
<script src="<%=request.getContextPath()%>/modules/common/js/jquery.validate.min.js"></script>
<script src="<%=request.getContextPath()%>/modules/common/js/validateConfig.js"></script>
<script src="<%=request.getContextPath()%>/modules/common/js/utils.js"></script>
<script src="<%=request.getContextPath()%>/modules/common/js/QTip.js"></script>
<script src="<%=request.getContextPath()%>/modules/common/js/QSearch.js"></script>
<script src="<%=request.getContextPath()%>/modules/common/js/QFooter.js"></script>
<script src="<%=request.getContextPath()%>/modules/common/js/DateUtil.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/modules/common/js/base.js" defer="defer"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/modules/common/js/QTable.js" defer="defer"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/modules/common/js/initTable.js" defer="defer"></script>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/modules/common/css/common.css"/>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/modules/common/css/QCss.css"/>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/modules/admin/css/main.css"/>
<script type="text/javascript">
    var wp={};
    var basePath="<%=request.getContextPath()%>";
    $(function(){
        wp.config={};
        wp.config.baseUrl="<%=request.getContextPath()%>";
        wp.config.pageSize=10;
    });

    function handleJsonResponse(json){
        if(json.message){
            alert(json.message)
        }
        if(json.url){
            window.location.href=wp.config.baseUrl+json.url;
            return false;
        }
        return json.code==200;
    }
    function handleErrorJsonResponse(json){
        console.log("error!!!"+json.responseText)
    }

    function isEmpty(str){
        if(str){
            return str==null|| $.trim(str).length==0||str.toLowerCase()=="undefined";
        }else{
            return true;
        }
    }

</script>
